#!/usr/bin/env bash

push_site="registry.cn-shanghai.aliyuncs.com/aishangwei/gcr-io"
img=$1
new_v=$(echo $img | awk -F'/' '{print $NF}' | sed 's/:/-/')

docker pull $img
docker tag $img $push_site:$new_v
docker push $push_site:$new_v



